package com.baseproject.datasource.get.request.type;

import com.baseproject.datasource.get.procedure.DataProcedure;

import org.json.JSONArray;
import org.json.JSONObject;

import java.util.List;

import rx.Observable;

/**
 * Created by hp on 2017/8/18.
 */

public abstract class RequestType {

    protected JSONArray jsonArrayData = null;
    protected JSONObject jsonObjectData = null;

    public abstract <T> List<T> getListFromRemoteResponseData(Object objectData, Class<T> className);

    public abstract <T> Observable<List<T>> getListFromLocal(DataProcedure dataProcedure, Class<T> className);

    public abstract <T> void save(List<T> contentList, DataProcedure dataProcedure);

}
